﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
    html, body {
        height: 100%;
        margin: 100px;
        padding: 0px
    }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap-theme.min.css" rel="stylesheet" />
    <link href="LibreriasScript/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="LibreriasScript/JQuery/jquery-1.11.0.min.js"></script>
    <script src="LibreriasScript/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>    
    <script src="LibreriasScript/FuncionesBuses.js"></script>
    <title>JusTime</title>
</head>
<body onload="infoBuses()">
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="Home.html" class ="navbar-brand" style="width:150px; height:65px"><img src="Recursos/JusTimeHome.png" height="auto" width=100%" /></a>
            </div>
            <div class="collapse navbar-collapse">
                <br />
                <ul class="nav navbar-nav">
                    <li><a data-toggle="modal" data-target="#Agregar"><span class="glyphicon glyphicon-pencil">   </span>   Agregar</a></li>                                    
                </ul>
            </div><!--/.nav-collapse --> 
        </div>
    </div>
    <div>
        <div aling="center"><h2>Buses</h2></div>
        <table id="tBuses" class="table table-striped">
            <tr>
                <td><strong>Placa</strong></td>
                <td><strong>Modelo</strong></td>
                <td><strong>Color</strong></td>
                <td><strong>Numero de motor</strong></td>
                <td><strong>Password</strong></td>
            </tr>
        </table>
        <p>Click en el bus para eliminarlo</p>
    </div>
    <div class="modal fade bs-example-modal-sm" id="Agregar" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="H2">Agregar bus</h4>
                </div>
                <div class="modal-body">
                    <div class="panel panel-info">
                        <div class="panel-heading">Informacion del bus</div>
                        <div class="panel-body">
                            <div class="input-group">
                                <span class="input-group-addon">Placa</span>
                                <input id="tPlaca" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Modelo</span>
                                <input id="tModelo" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Color</span>
                                <input id="tColor" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Numero de motor</span>
                                <input id="tNumeroMotor" type="text" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Password</span>
                                <input id="tPassword1" type="password" class="form-control" placeholder="">
                            </div><br/>
                            <div class="input-group">
                                <span class="input-group-addon">Verifique password</span>
                                <input id="tPassword2" type="password" class="form-control" placeholder="">
                            </div><br/>
                            <button id="crearBus" class="btn btn-default" data-dismiss="modal" onclick="crearBus()">Crear bus</button>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
